Allow wildcards [*?] in xml tag list.
authoroliskoli <oliskoli>
Thu, 28 Jun 2007 22:37:13 +0000 (22:37 +0000)
committeroliskoli <oliskoli>
Thu, 28 Jun 2007 22:37:13 +0000 (22:37 +0000)
xmlgeneric.c

index 16aa6513f48ad8928ae47baf0c5e706a3c6f7aa4..74ea8f1924e14497e427003152ee1a068251af75 100644 (file)
@@ -160,7 +160,7 @@ xml_tbl_lookup(const char *tag, xg_cb_type cb_type)
 {
        xg_tag_mapping *tm;
         for (tm = xg_tag_tbl; tm->tag_cb != NULL; tm++) {
-               if (0 == strcmp(tm->tag_name, tag) && (cb_type == tm->cb_type)) {
+               if (str_match(tm->tag_name, tag) && (cb_type == tm->cb_type)) {
                        return tm->tag_cb;
                }
        }